﻿using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using OpenRiaServices.DomainServices.Server;

namespace OpenRiaServices.Issue92.Web.Models
{
    [Table("ParentEntities")]
    public partial class ParentEntity
    {
        public ParentEntity()
        {
            ChildEntities = new HashSet<ChildEntity>();
        }

        public int Id { get; set; }

        [Required]
        public string Name { get; set; }

        [Include]
        public virtual ICollection<ChildEntity> ChildEntities { get; set; }
    }
}
